﻿<!DOCTYPE html>
<html lang="zh">

<head resource>
    <meta charset="utf-8">
    <include file="../inc/meta.inc" />   
    <title>成绩回顾</title>
</head>

<body>
    <div id="vapp" v-cloak>
        <div class="header">
            <a icon="&#xe748" style="font-size: 22px;" @click="window.history.go(-1);"></a>
            <a icon="&#xa020" style="font-size: 18px;" href="/mobi/"></a>
            <div class="header_info" v-if="!islogin" remark="未登录">
                <div class="acc_photo nophoto"></div>
                <a :href="commonaddr('signin')">未登录 </a>
            </div>
            <div class="header_info" v-if="islogin" remark="已经登录">
                <div class="acc_photo" v-if="!!account.Ac_Photo && account.Ac_Photo!=''"
                    :style="'background-image: url('+account.Ac_Photo+');'"></div>
                <template v-else>
                    <div class="acc_photo woman" v-if="account.Ac_Sex==2"></div>
                    <div class="acc_photo man" v-else></div>
                </template>
                <span class="acc-name">{{account.Ac_Name}} </span>
            </div>
        </div>
        <div v-if="loading">
            <card>
                <card-title>
                    <van-loading type="spinner">正在加载中...</van-loading>
                </card-title>
            </card>
        </div>
        <context>
            <card v-if="!loading">
                <card-title>《{{paper.Tp_Name}}》</card-title>
                <card-context>
                    <row> 成绩：<score :class="scoreStyle(scoreFinal)">{{scoreFinal}} 分</score>
                        <span class="tag">（满分{{paper.Tp_Total}}分，{{paper.Tp_PassScore}}分及格）</span>
                    </row>
                    <row>
                        时间： {{result.Tr_CrtTime|date("yyyy-MM-dd HH:mm")}}
                    </row>
                </card-context>
            </card>
            <template v-if="error==''">
                <van-sticky>
                    <van-tabs v-model="tabactive">
                        <van-tab name="all">
                            <template #title>
                                <span icon="&#xe75e">所有({{ques_all_count}})
                            </template>
                        </van-tab>
                        <van-tab name="success"> <template #title>
                                <span icon="&#xa048">正确({{ques_success_count}})
                            </template>
                        </van-tab>
                        <van-tab name="error"> <template #title>
                                <span icon="&#xe6fe">错误({{ques_error_count}})
                            </template>
                        </van-tab>
                        <van-tab name="unasnwered"> <template #title>
                                <span icon="&#xa01f">未做({{ques_unanswerd_count}})
                            </template>
                        </van-tab>
                    </van-tabs>
                </van-sticky>
                <div class="question">
                    <group v-for="(type,index) in questions" :item="type" :index="index" :types="types"
                        :state="tabactive">
                        <question v-for="(q,i) in type.ques" :qans="q"  :account="account.Ac_ID" :exam="null" :index="i" :state="tabactive" :groupindex="index"
                            :questions="questions"></question>
                    </group>
                </div>
            </template>
            </template>
        </context>
    </div>
</body>

</html>